package com.koron.order.overhaul.feign;

import com.koron.bean.base.Response;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import com.koron.order.overhaul.bean.dto.WorkTicket;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "eam-service-ticket", fallbackFactory = FeignFallbackFactory.class)
public interface TicketFeign {

    @PostMapping("/work/workticket/queryTicketByOrderId")
    Response<List<WorkTicket>> queryTicketByOrderId(@RequestParam("orderId") String orderId);
}
